<xsl:stylesheet version="2.0"
		xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		xmlns:svg="http://www.w3.org/2000/svg"
	    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
	    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
	    xmlns:owl="http://www.w3.org/2002/07/owl#" 
	    xmlns:foaf="http://xmlns.com/foaf/0.1/" 
	    xmlns:dc="http://purl.org/dc/terms/" 
	    xmlns:dctypes="http://purl.org/dc/dcmitype/" 
	    xmlns:skos="http://www.w3.org/2004/02/skos/core#"
	    xmlns:xsd="http://www.w3.org/2001/XMLSchema#" 
	    xmlns:po="http://purl.org/ontology/po/" 
	    xmlns:wo="http://purl.org/ontology/wo/"
		>

	<xsl:param name="clip" select="'M60 0 L60 395 L450 395 L600 250 L600 0'"/>
	<xsl:param name="text" select="''"/>

			
  	<xsl:template match="/">
		<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="body" width="640" height="395">
			
			<!-- Pattern Definition -->
			<defs>
				<path id="path1" d="M20 0 L20 370 L370 370 Z" />
				<path id="path2" d="M20 0 L20 370 L370 370 Z" />
				<clipPath id="clip1">
		            <path d="{$clip}"/>
		        </clipPath>
			</defs>

			<image x="0" y="0" width="100%" height="100%" xlink:href="{/rdf:RDF/wo:Species/foaf:depiction/@rdf:resource}" clip-path="url(#clip1)" />

			<!-- Path Text Example -->
		    <use xlink:href="#path1" fill="none" stroke="none"/>
		
		    <text font-size="40" style="fill:white; stroke:black; stroke-width:2" opacity="0.9">
		        <textPath xlink:href="#path1"><xsl:value-of select="/rdf:RDF/wo:Species/rdfs:label"/></textPath>
		    </text>

		  <text dx="10" dy="13" style="fill:#999; stroke:#000; stroke-width:0; font-family:sans-serif">
			<textPath xlink:href="#path2">Markus Varesvuo / naturepl.com</textPath>
		  </text>		
					
		</svg>
  	</xsl:template>

</xsl:stylesheet>


